package com.etime.service.impl;

import com.etime.dao.impl.StudentEnrollDaoImpl;
import com.etime.service.StudentEnrollService;

public class StudentEnrollServiceImpl implements StudentEnrollService {
  StudentEnrollDaoImpl studentEnrollDao = new StudentEnrollDaoImpl();
  @Override
  public boolean enroll(String name, String password) {
    int i = studentEnrollDao.enroll(name, password);
    if (i==-1){
      return false;
    }
    else {
      return true;
    }
  }
}
